using System;
using System.Collections.Generic;
using System.Text;
using CoastToCoast.Game;

namespace CoastToCoast.Game.Units {
    public static class UnitFactory {
        public static T CreateUnit<T>(Player owner) where T : Unit, new() {
            T unit = new T();
            owner.AddUnit(unit);
            return unit;
        }
    }
}
